package Day16.object;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/23 9:35
 */
public class Equals01 {
    public static void main(String[] args) {
        Person1  p1 = new Person1();
        p1.name = "jaizhong";
        Person1  p2 = new Person1();
        p2.name = "jaizhong";

        System.out.println(p1==p2);
        System.out.println(p1.name.equals(p2.name));
        System.out.println(p1.equals(p2));
    }
}
class Person1{
    public String name;
}
